import java.util.Scanner;

public class Main1086 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int a=0;
        for (int i=1;i<=n;i++){
            int x=i;
            int y=i+1;
            if(((x+y)/3==0)||((x+y)/7==0)){
                a++;
            }System.out.println(a);
        }
    }
}
